package com.milkshopbackend.milkshop.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.milkshopbackend.milkshop.entity.Cart;
import com.milkshopbackend.milkshop.entity.CartDTO;

import java.util.List;

public interface CartService extends IService<Cart> {

    void addToCart(Long userId, CartDTO cartDTO);

    List<Cart> getCartByUserId(Long userId);

    void updateCartItem(Long userId,Long cartId,Integer quantity );

    void removeCartItem(Long userId,Long cartId);

    void clearCart(Long userId);
}
